#include "drawable.h"

Drawable::Drawable  ( Sprite* _sprite  )  {
   pDebug( this << " Drawable::Drawable (" << "Sprite* _sprite =" << &_sprite   << ")")
    sprite = _sprite;
   posRect = new Rect();
   posRect->w = sprite->getGeometry()->w;
   posRect->h = sprite->getGeometry()->h;
}

void DrawableList::add  ( Drawable* drawable  )  {
   pDebug( this << " void DrawableList::add (" << "Drawable* drawable =" << &drawable   << ")")
    List::add ( (Listable*) drawable ); 
}

Drawable * DrawableList::iter  (  )  {
   pDebug( this << " Drawable * DrawableList::iter ("   << ")")
    return ( Drawable* ) List::listIter ();
}
